package org.goldenport.g3.services.gdata;

import java.io.IOException;
import java.net.URL;
import com.google.gdata.client.calendar.*;
import com.google.gdata.data.calendar.*;
import com.google.gdata.util.*;

/**
 * @version Aug. 28, 2010 
 * @author  ASAMI, Tomoharu
 */
public class JGCalendarService {
    public final CalendarService g;

    public JGCalendarService(String name) {
        g = new CalendarService(name);
    }

    public void setUserCredentials(String user, String passwd) throws AuthenticationException {
        g.setUserCredentials(user, passwd);
    }

    public CalendarFeed getFeed(URL url) throws IOException, ServiceException {
        return (CalendarFeed)g.getFeed(url, CalendarFeed.class);
    }
}
